package com.gongzhiyun.springboot3test.entity.message;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@Schema(description = "回复表")
public class TbReplyMessages implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键", example = "1")
    private Integer id;
    @Schema(description = "留言id", example = "1")
    private Integer mid;
    @Schema(description = "用户id", example = "1")
    private Integer uid;
    @Schema(description = "回复内容")
    private String info;
    @Schema(description = "点赞数")
    private Integer praise;
    @TableLogic
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "是否删除", example = "n")
    private String deleted;
    @Schema(description = "删除原因")
    private String reason;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "最后更新时间")
    private Date lastupdate;
}
